﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Agatha.Common;
using Common.Logging;
using Source.Common;
using Source.Web.FrameWork;

namespace Source.Web.Project
{
    public partial class Project :BasePage<ProjectController>,IProjectView
    {
        protected void Page_Load(object sender, EventArgs e)
        {
           
            Controller.Load();
        }

        #region IProject Members

        public string A1LevelTitle
        {
            get
            {
                return A1.Text;
            }
            set
            {
                A1.Text = value;
            }
        }

        public void ShowProjects(IEnumerable<ProjectInfo> AllProjects)
        {
            ProjectsGridView.DataSource = AllProjects;
            ProjectsGridView.DataBind();
        }

        #endregion

        protected void Button1_Click(object sender, EventArgs e)
        {
          
            Controller.Loger.Debug("testnew log");
            Controller.Approve();

        }


    }
}
